package com.pr.test.address;

/**
 * @author Li
 * @Date 2023/4/13 9:53
 */
public class Student {
    String name;
    int age;

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public void say(String name) {
        //this指向对象的引用地址
        System.out.println(this.name);

    }
}
